//包含抽象方法的类，必须声明抽象类
public  class Animal {
    private String color;
    private int age;
    public Animal(){

    }
    public Animal(String color,int age){
        this.age=age;
        this.color=color;
    }
    public  void eat(){
    }
    public  void sleep(){
       
    }

    public String getColor(){
        return color;
    }
    public int getAge(){
        return age;
    }
}
